﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FxhjpgWeb.WebSite.Code
{
    public class AuthPageBase : Ajeelee.Core.Web.AuthPageBase
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (!HttpContext.Current.User.Identity.IsAuthenticated || HttpContext.Current.User.Identity.Name == "")
            {
                //Response.Redirect("/webadmin/login.aspx");
                Response.Write("<script type=\"text/javascript\">top.location = \"/webadmin/login.aspx\";</script>");
            }
        }
    }
}